let BASE_URL = ''
let LOGIN_URL = ''

const accountInfo = uni.getAccountInfoSync()
const envVersion = accountInfo.miniProgram.envVersion

switch (envVersion) {
  case 'develop': //开发版
    BASE_URL = 'http://dev.lima-info.com:25001' // 立马开发环境
    LOGIN_URL = 'http://dev.lima-info.com:25001' // 立马开发环境
    break
  case 'trial': //体验版
    BASE_URL = 'https://www.lima-info.com:9443' // 立马测试环境
    LOGIN_URL = 'https://www.lima-info.com:9443'
    break
  case 'release': //正式版
    BASE_URL = 'https://uat.lima-info.com:25005' // uat环境
    LOGIN_URL = 'https://uat.lima-info.com:25005' // uat环境
    break
}

const configService = {
  apiUrl: BASE_URL,
  loginUrl: LOGIN_URL,
  envVersion
}

export default configService
